package com.castle.fortress.admin.member.entity;

import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
/**
 * 会员可见权限表 实体类
 *
 * @author castle
 * @since 2023-02-14
 */
@Data
@TableName("member_authority")
public class MemberAuthorityEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 主键
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(
			value = "id",
			type = IdType.ASSIGN_ID
	)
	private Long id;
	/**
	 * 权限类型(应用/文档/考试) 参照枚举AuthorityTypeEnum
	*/
	private Integer type;
	/**
	 * 用户ID集合,逗号隔开
	*/
	private String memberId;
	/**
	 * 用户组ID集合,逗号隔开
	*/
	private String groupId;
	/**
	 * 部门ID集合,逗号隔开
	*/
	private String deptId;
	/**
	 * 标签id集合，逗号隔开
	*/
	private String tagId;
	/**
	 * 限制ID(根据权限类型 控制限制啥的)
	*/
	@JsonSerialize(using = ToStringSerializer.class)
	private Long imposeId;

}
